package com.star.mall.persistence.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.star.mall.base.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableField;
import com.star.mall.file.model.IFile;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 文件表 
 * </p>
 *
 * @author StarQ
 * @since 2021-05-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_file_record")
@ApiModel(value="FileRecord对象", description="文件表 ")
public class FileRecord extends BaseModel implements IFile {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "文件名")
    @TableField("NAME_")
    private String name;

    @ApiModelProperty(value = "文件名")
    @TableField("KEY_")
    private String key;

    @ApiModelProperty(value = "文件类型")
    @TableField("TYPE_")
    private String type;

    @ApiModelProperty(value = "扩展名")
    @TableField("EXT_")
    private String ext;

    @ApiModelProperty(value = "说明")
    @TableField("NOTE_")
    private String note;

    @ApiModelProperty(value = "存储路径")
    @TableField("PATH_")
    private String path;

}
